﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using AnQinFrameWorkAPI.Common.Enum;

namespace AnQinFrameWorkAPI.Entity.Develop.Entity;

/// <summary>
///     项目序列表模型
/// </summary>
[Table("ProjectList")]
public class DevelopProjectListModel
{
    /// <summary>
    ///     项目序列id
    /// </summary>
    [Key]
    [MaxLength(36)]
    public Guid Id { get; set; }

    /// <summary>
    ///     项目序列编码
    /// </summary>
    [MaxLength(50)]
    public string Code { get; set; }

    /// <summary>
    ///     项目序列名字
    /// </summary>
    [MaxLength(50)]
    public string Name { get; set; }

    /// <summary>
    ///     客户Id
    /// </summary>
    [MaxLength(36)]
    public string? CustomerId { get; set; }
    
    /// <summary>
    ///     客户姓名
    /// </summary>
    [MaxLength(50)]
    public string? CustomerName { get; set; }

    /// <summary>
    ///     备注
    /// </summary>
    [Column(TypeName = "nvarchar(max)")]
    public string? Remark { get; set; }

    /// <summary>
    ///     项目状态
    /// </summary>
    public DevelopEnum.StatusEnum? Status { get; set; }

    /// <summary>
    ///     开始时间
    /// </summary>
    public DateTime? StartTime { get; set; }

    /// <summary>
    ///     结束时间
    /// </summary>
    public DateTime? EndTime { get; set; }

    /// <summary>
    ///     创建人Id
    /// </summary>
    [MaxLength(36)]
    public string? CreateStaffId { get; set; }
    
    /// <summary>
    ///     创建人姓名
    /// </summary>
    [MaxLength(50)]
    public string? CreateStaffName { get; set; }

    /// <summary>
    ///     创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }

    /// <summary>
    ///     是否删除
    /// </summary>
    public bool IsDelete { get; set; }
}